<?php /* Template_ 2.2.4 2011/09/28 09:20:06 E:\PHP\www\sagapo\template_\default\admin\anniversary\view.html 000001899 */ ?>
<h2 class="anniversary">기념일 관리</h2>
<section class="anniversary-view">
	<h3>
		<?php echo $TPL_VAR["result"]->ay_name?>

		<span class="date"><?php echo $TPL_VAR["result"]->date?></span> 
		<span class="<?php echo $TPL_VAR["result"]->sr_css?>">(<?php echo $TPL_VAR["result"]->solar?>)</span>
	</h3>
	
	<hr class="hr1" />
	<div class="days"><?php echo $TPL_VAR["result"]->days?></div>
	<hr class="hr2" />
	
<?php if($TPL_VAR["result"]->future_schedule->is){?>
	<table class="table">
		<caption>
			향후 기념일 일정
		</caption>
		<colgroup>
			<col class="name" />
			<col />
		</colgroup>
		<tbody>
<?php if(is_array($TPL_R1=$TPL_VAR["result"]->future_schedule->list)&&!empty($TPL_R1)){foreach($TPL_R1 as $TPL_V1){?>
			<tr>
				<td class="txt_center"><?php echo $TPL_V1->name?></td>
				<td><?php echo $TPL_V1->day?></td>
			</tr>
<?php }}?>
		</tbody>
	</table>	
<?php }else{?>
	<div class="repeat"><?php echo $TPL_VAR["result"]->date?> 기준으로 <span class="blue"><?php echo $TPL_VAR["result"]->interval->y+ 1?> (만 <?php echo $TPL_VAR["result"]->interval->y?>)</span>세 총 <span class="red"><?php echo $TPL_VAR["result"]->interval->days?> </span>일이 지났습니다.</div>
<?php }?>
	<div class="button_area">
		<button type="button" class="cancel" onclick="back()">뒤로</button>
		<button type="button" class="modify" onclick="move('<?php echo $TPL_VAR["CFG"]->PATH->WWWADMIN?>/anniversary/modify/<?php echo $TPL_VAR["result"]->ay_seq?>')">수정</button>
		<button type="button" class="delete" onclick="confirm_move('정말로 삭제하시겠습니까?', '<?php echo $TPL_VAR["CFG"]->PATH->WWWADMIN?>/anniversary/doDelete/<?php echo $TPL_VAR["result"]->ay_seq?>')">삭제</button>
	</div>
</section>